﻿{block name="title" prepend}Покупка обороны{/block}
{block name="content"}
<form action="game.php?page=dmdeff" method="post">
	<input type="hidden" name="mode" value="send">
    <input type="hidden" id="shipID" name="shipID" value="">
	<table style="width:760px; text-align:left;">
        <tr>
			<th colspan="2">Покупка обороны (<span style="color:#FC0; font-weight:bold;" id="traderHead"></span>)<a class="bakc" href="game.php?page=port">Назад</a></th>
		</tr>
        <tr>
			<td rowspan="4" style="width:121px; height:126px;">
				<img width="120" height="120" id="img" alt="" data-src="{$dpath}gebaeude/" />
            </td>
        </tr>
        <tr>
        	<td>
            	{$LNG.ft_count}: <input type="text" id="count" name="count" onkeyup="Total();">
            </td>
        </tr>
        <tr>
        	<td>
				Стоимость: {$LNG.tech.921}: <span id="darkmatter" style="font-weight:bold;"></span> 			</td>
        </tr>
        <tr>
        	<td>
				{$LNG.ft_total}: {$LNG.tech.921}: <span id="total_darkmatter" style="font-weight:bold;"></span>
			</td>
		</tr>
        <tr style="display:none" id="batn">
			<th colspan="2" style="text-align:center;"><input type="submit" value="Купить" style="width:70px; margin:0 auto;"></th>
		</tr>
        <tr>
			<td colspan="2" style="text-align:left;">
            	{foreach $shipIDs as $shipID}
                        <img width="60" style="cursor:pointer;" onclick="updateVars({$shipID})" height="60" alt="{$LNG.tech.$shipID}" title="{$LNG.tech.$shipID}" src="{$dpath}gebaeude/{$shipID}.gif" />
				{/foreach}
            </td>
		</tr>
	</table>
</form>
{/block}
{block name="script" append}
<script type="text/javascript">
var CostInfo = {$CostInfos|json};
var Charge = {$Charge};
</script>
{/block}